package com.lwf.run;

import com.lwf.component.spider.iteye.essence.IteyeEssenceProcessor;
import us.codecraft.webmagic.Spider;

public class IteyeEssenceRun {

    public static void main(String[] args) {
        Spider.create(new IteyeEssenceProcessor())
                .addUrl("http://www.iteye.com/magazines?page=1")
                //开启5个线程抓取
                .thread(1)
                //启动爬虫
                .run();
    }

}
